Object.values() converts an object to an array.
JSON.stringify() is included in JavaScript and supported in all major browsers.Any JavaScript object can be stringified (converted to a string) with the JavaScript function JSON.stringify():
Display properties in JSON format:
the JSON notation: {"name":"John","age":50,"city":"New York"}